import {createSlice} from '@reduxjs/toolkit'
const searchSlice=createSlice({
    name:'searchList',
    initialState:{
        searchID:'',
        searchList:[],
        MusicPlay:{}
    },
    reducers:{
        setSearchID(state,action){
            state.searchID=action.payload
        },
        setSearchListSong(state,action){
            state.searchList=action.payload
        },
        setMusicPlay(state,action){
            state.setMusicPlay =action.payload
        }
    }
})
export const {setSearchID}=searchSlice.actions
export const {setSearchListSong} = searchSlice.actions
export const {setMusicPlay}=searchSlice.actions

export const {reducer:searchListReducer} = searchSlice
